import fetch from '@/utils/fetch'

export function receiverList(query) {
  return fetch({
    url: '/msg/receiver ',
    method: 'get',
    params: query
  })
}

export function modifyReceiver(form) {
  return fetch({
    url: '/msg/modifyReceiver',
    method: 'POST',
    params: form
  })
}

export function delReceiver(query) {
  return fetch({
    url: '/msg/deleteReceiver',
    method: 'get',
    params: query
  })
}

export function baseConfList(query) {
  return fetch({
    url: '/msg/baseConfList',
    method: 'get',
    params: query
  })
}

export function toBaseConfReceiver(query) {
  return fetch({
    url: '/msg/toBaseConfReceiver',
    method: 'get',
    params: query
  })
}

export function baseConfReceiverModify(query) {
  return fetch({
    url: '/msg/baseConfReceiverModify',
    method: 'get',
    params: query
  })
}

export function baseConfModify(query) {
  return fetch({
    url: '/msg/baseConfModify',
    method: 'get',
    params: query
  })
}

export function getTypeList(query) {
  return fetch({
    url: '/msg/getTypeList',
    method: 'get',
    params: query
  })
}

export function getMsgList(form) {
  return fetch({
    url: '/msg/getMsgList',
    method: 'POST',
    params: form
  })
}

export function readBatch(form) {
  return fetch({
    url: '/msg/readBatch',
    method: 'get',
    params: form
  })
}

export function deleteBatchMsg(form) {
  return fetch({
    url: '/msg/deleteBatchMsg',
    method: 'get',
    params: form
  })
}

export function readAll(form) {
  return fetch({
    url: '/msg/readAll',
    method: 'get',
    params: form
  })
}

export function readMsg(form) {
  return fetch({
    url: '/msg/readMsg',
    method: 'get',
    params: form
  })
}

export function typeList(form) {
  return fetch({
    url: '/msg/typeList',
    method: 'get',
    params: form
  })
}

export function modifyType(form) {
  return fetch({
    url: '/msg/modifyType',
    method: 'POST',
    params: form
  })
}

export function deleteType(form) {
  return fetch({
    url: '/msg/deleteType',
    method: 'get',
    params: form
  })
}

export function getNoReadMsgList(form) {
  return fetch({
    url: '/msg/getNoReadMsgList',
    method: 'get',
    params: form
  })
}

export function queryMsgTypeByName(form) {
  return fetch({
    url: '/msg/queryMsgTypeByName',
    method: 'get',
    params: form
  })
}
export function userInfo() {
  return fetch({
    url: '/sys/user/info',
    method: 'get'
  })
}
